<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Apache Kafka Payment Processing - KPay">
    <meta name="author" content="">
    <!--<link rel="icon" href="../../../../favicon.ico">-->

    <title>KPay - Apache Kafka Payment Processing</title>

    <!-- Bootstrap core CSS -->
    <!--<link href="../../../../dist/css/bootstrap.min.css" rel="stylesheet">-->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" crossorigin="anonymous">


    <!-- Custom styles for this template -->
    <link href="dashboard.css" rel="stylesheet">
</head>

<body>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">

    <a class="navbar-brand col-sm-3 col-md-2 mr-0" style="padding-top:2px;padding-bottom:2px;" href="#">
        <img  src="static/logo.png?raw=true" alt="logo@3x.png">
        KPay!</a>
    <!--<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">LOGO</a>-->

    <input class="form-control form-control-dark w-100" type="text" placeholder="Search" aria-label="Search">
    <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
            <a class="nav-link" href="#">Sign out</a>
        </li>
    </ul>
</nav>

<div class="container-fluid">
    <div class="row">
        <nav class="col-md-2 d-none d-md-block bg-light sidebar">
            <div class="sidebar-sticky">
                <ul class="nav flex-column">
                    <li class="nav-item">
                        <a class="nav-link active" href="#">
                            <span data-feather="home"></span>
                            Status <span class="sr-only">(current)</span>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/swagger/index.html" target="_blank">
                            <span data-feather="layers"></span>
                            Swagger UI
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/openapi.json" target="_blank">
                            <span data-feather="file"></span>
                            OpenAPI.json
                        </a>
                    </li>
                    <!--<li class="nav-item">-->
                    <!--<a class="nav-link" href="#">-->
                    <!--<span data-feather="users"></span>-->
                    <!--Customers-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--<li class="nav-item">-->
                    <!--<a class="nav-link" href="#">-->
                    <!--<span data-feather="bar-chart-2"></span>-->
                    <!--Reports-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--<li class="nav-item">-->
                    <!--<a class="nav-link" href="#">-->
                    <!--<span data-feather="layers"></span>-->
                    <!--Integrations-->
                    <!--</a>-->
                    <!--</li>-->
                </ul>

                <h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
                    <span>Saved reports</span>
                    <a class="d-flex align-items-center text-muted" href="#">
                        <span data-feather="plus-circle"></span>
                    </a>
                </h6>
                <ul class="nav flex-column mb-2">
                    <li class="nav-item">
                        <a class="nav-link" href="#">
                            <span data-feather="file-text"></span>
                            Parked
                        </a>
                    </li>
                    <!--<li class="nav-item">-->
                    <!--<a class="nav-link" href="#">-->
                    <!--<span data-feather="file-text"></span>-->
                    <!--Last quarter-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--<li class="nav-item">-->
                    <!--<a class="nav-link" href="#">-->
                    <!--<span data-feather="file-text"></span>-->
                    <!--Social engagement-->
                    <!--</a>-->
                    <!--</li>-->
                    <!--<li class="nav-item">-->
                    <!--<a class="nav-link" href="#">-->
                    <!--<span data-feather="file-text"></span>-->
                    <!--Year-end sale-->
                    <!--</a>-->
                    <!--</li>-->
                </ul>
            </div>
        </nav>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
                <h5>Pause and resume</h5>
                <div class="btn-toolbar mb-2 mb-md-0">
                    <div class="btn-group mr-2">
                        <button class="btn btn-sm btn-outline-secondary" id="payments">Payment simulation</button>
                        <button class="btn btn-sm btn-outline-secondary" id="resumePayments" title="resume">&gt;
                        </button>
                        <button class="btn btn-sm btn-outline-secondary" id="pausePayments" title="pause">||</button>
                        <button class="btn btn-sm btn-outline-secondary" id="statusPayments"
                                title="current status of generation - running or stopped">...
                        </button>
                        <input tips="number of trades to generate" type="text" title="number of payments per second"
                               name="amount" value="10">

                        &nbsp;&nbsp;&nbsp;&nbsp;

                        <button class="btn btn-sm btn-outline-secondary" id="processing"
                                title="payment processing pipeline control">Processing pipeline
                        </button>
                        <button class="btn btn-sm btn-outline-secondary" id="resumeProgressing"
                                title="resume data processing">&gt;
                        </button>
                        <button class="btn btn-sm btn-outline-secondary" id="pauseProcessing"
                                title="pause data processing">||
                        </button>
                        <button class="btn btn-sm btn-outline-secondary" id="statusProcessing"
                                title="current status of processors - running or stopped">...
                        </button>
                    </div>

                    <div class="btn-group mr-2">
                        <button class="btn btn-sm btn-outline-secondary" id="replay"
                                title="payment processing pipeline control">Replay
                        </button>
                        <button class="btn btn-sm btn-outline-secondary dropdown-toggle">
                            <span data-feather="calendar"></span>
                            The last hour
                        </button>
                    </div>
                </div>
            </div>

            <h5>Instrumentation metrics</h5>

            <canvas class="my-4 w-100" id="latencyChart" width="900" height="180"></canvas>

            <h5>Business metrics</h5>

            <canvas class="my-4 w-100" id="paymentPipelineChart" width="900" height="180"></canvas>

            <h5>User accounts</h5>
            <div class="table-responsive">
                <table id="accountTable" class="display" width="100%"></table>
            </div>
        </main>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
        integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
        crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"
        integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T"
        crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" crossorigin="anonymous"></script>

<script src="static/kpay.js"></script>

<!-- Icons -->
<script src="https://unpkg.com/feather-icons/dist/feather.min.js"></script>
<script>
    feather.replace()
</script>

<!-- Graphs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>

</body>
</html>
